package javax.microedition.io.file;

import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;

public class RandomAccessFileOutputStream extends OutputStream
{
  RandomAccessFile raf;

  RandomAccessFileOutputStream(RandomAccessFile paramRandomAccessFile)
  {
    this.raf = paramRandomAccessFile;
  }

  public void close()
    throws IOException
  {
    this.raf.close();
  }

  public void flush()
    throws IOException
  {
  }

  public void write(int paramInt)
    throws IOException
  {
    this.raf.writeByte(paramInt);
  }

  public void write(byte[] paramArrayOfByte)
    throws IOException
  {
    this.raf.write(paramArrayOfByte);
  }

  public void write(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
    throws IOException
  {
    this.raf.write(paramArrayOfByte, paramInt1, paramInt2);
  }
}